﻿using HlELock.Core.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Services.Dialogs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HlELock.Core
{
    public class CoreModule : IModule
    {
        void IModule.OnInitialized(IContainerProvider containerProvider)
        {
        }

        void IModule.RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterDialog<SelectRoomUserControl>(nameof(SelectRoomUserControl));
            containerRegistry.RegisterDialog<SendingUserControl>(nameof(SendingUserControl));
            containerRegistry.RegisterDialog<SettingControl>(nameof(SettingControl));
            containerRegistry.Register<IDialogWindow, PrismDialogWindow>(nameof(PrismDialogWindow));
        }
    }
}
